home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
mymem1
/
mygp.frm
< prev
next >
Wrap
Text File
|
1995-05-08
|
5KB
|
187 lines
VERSION 2.00
Begin Form MyGp
BorderStyle = 3 'Fixed Double
Caption = "Games Played"
ClientHeight = 4635
ClientLeft = 1215
ClientTop = 1560
ClientWidth = 6015
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 5040
Icon = 0
Left = 1155
LinkMode = 1 'Source
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4635
ScaleWidth = 6015
Top = 1215
Width = 6135
Begin CommandButton PrintScoreCmd
Caption = "Print Scores"
Height = 375
Left = 3240
TabIndex = 3
Top = 4200
Width = 2655
End
Begin CommandButton ClearAllCmd
Caption = "Clear All Scores"
Height = 375
Left = 120
TabIndex = 2
Top = 4200
Width = 2655
End
Begin PictureBox PName
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Courier"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 3615
Left = 2520
ScaleHeight = 3585
ScaleWidth = 3345
TabIndex = 9
TabStop = 0 'False
Top = 480
Width = 3375
End
Begin PictureBox PScore
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Courier"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 3615
Left = 1440
ScaleHeight = 3585
ScaleWidth = 1065
TabIndex = 8
TabStop = 0 'False
Top = 480
Width = 1095
End
Begin PictureBox PGame
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Courier"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 3615
Left = 120
ScaleHeight = 3585
ScaleWidth = 1305
TabIndex = 7
TabStop = 0 'False
Top = 480
Width = 1335
End
Begin CommandButton GPOK
Caption = "OK"
Default = -1 'True
Height = 375
Left = 4680
TabIndex = 0
Top = 120
Width = 1215
End
Begin CommandButton GPCancel
Caption = "Cancel"
Height = 375
Left = 3360
TabIndex = 1
Top = 120
Width = 1215
End
Begin Label Label1
Caption = "Name"
Height = 255
Index = 2
Left = 2520
TabIndex = 6
Top = 240
Width = 735
End
Begin Label Label1
Caption = "Score"
Height = 255
Index = 1
Left = 1440
TabIndex = 5
Top = 240
Width = 615
End
Begin Label Label1
Caption = "Game"
Height = 255
Index = 0
Left = 120
TabIndex = 4
Top = 240
Width = 615
End
End
Dim SetClearScores As Integer
Sub ClearAllCmd_Click ()
SetClearScores = True
MyGp.PScore.Cls
MyGp.PName.Cls
End Sub
Sub Form_Load ()
SetClearScores = False
End Sub
Sub GPCancel_Click ()
Unload MyGp
End Sub
Sub GPOK_Click ()
If SetClearScores = True Then
ClearAllScores
End If
Unload MyGp
End Sub
Sub PrintScoreCmd_Click ()
MyGp.MousePointer = HOURGLASS
Printer.Print
Printer.Print "Field Size";
Printer.Print Tab(15);
Printer.Print "Score";
Printer.Print Tab(25);
Printer.Print "Name"
Printer.Print
For I% = 0 To 5
For J% = 0 To 2
Printer.Print Str$((I% * 2) + 8) + " x" + Str$((J% * 2) + 6);
If ScoreArray(I%, J%) = NoScore Then
Printer.Print
Else
Printer.Print Tab(15);
Printer.Print Str$(ScoreArray(I%, J%));
Printer.Print Tab(25);
Printer.Print " " + ScoreArrayName(I%, J%)
End If
Next J%
Next I%
Printer.EndDoc
MyGp.MousePointer = DEFAULT
End Sub